/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2024-05-29 16:25:57
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-05-31 10:37:46
 * @FilePath: \driving-training-admin\src\views\dictManagement\config.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export const tableConfig = {
    headerOperation: [
        {
            type: 'create',
            visible: true,
            permission: ['POST:/api/system/dict/manage/add'],
            className: '',
            name: '新增',
            button: 'button',
            radioGroup: []
        }
    ],
    search: [],
    permission: ['GET:/api/system/dict/manage/getPageList'],
    table: {
        operationWidth: '120px',
        operation: [
            {
                type: 'edit',
                visible: true,
                permission: ['POST:/api/system/dict/manage/edit'],
                className: '',
                name: '编辑'
            },
            {
                type: 'delete',
                visible: true,
                permission: ['DELETE:/api/system/dict/manage/remove'],
                className: 'delete',
                name: '删除'
            }
        ],
        propName: {
            sortOrder: '序号',
            itemText: '名称',
            itemValue: '值',
            color: '颜色',
            description: '描述'
        },
        showSummary: false,
        selection: false,
        index: false,
        isDialog: false,
        summaryArray: [],
        summaryType: '',
        sortable: [],
        switch: {
            disabled: false,
            permission: [],
            tooltip: {
                visible: false,
                content: ''
            }
        }
    }
}
